window.addEventListener('workEvent', function(event) {
	var detail = event.detail;
	setTimeout(function() {
		loadData();

	}, 500)

});



var mask = null;
var login_user = null
$(function() { // 初始化内容
	mui.plusReady();
	mask = mui.createMask(); //遮罩层
	login_user = JSON.parse(localStorage.getItem('loginUser'));
	mui.init();
	datetime_init();
	setTimeout(function() {

	}, 300)

})






function openStatistics() {

	window.location.href = "statistics.html"
	
}


function openLTC() {

	//window.location.href = "refundRecordList.html"
	
	setTimeout(function() {
		mui.alert('功能正在构建,请耐心等待');
	}, 300)
}

function openStaff() {

	//window.location.href = "discountRecordList.html"
	setTimeout(function() {
		mui.alert('功能正在构建,请耐心等待');
	}, 300)
}

function openUpAllotResourceList() {

	window.location.href = "upAllotResourceList.html"
}

function openDiscountsRecordList(){
	window.location.href = "discountRecordList.html"
}
function openRefundRecordList(){
	window.location.href = "refundRecordList.html"
}



function openSalerStatistics() {

	// window.location.href = "salerStatistics.html"
	setTimeout(function() {
		mui.alert('功能正在构建,请耐心等待');
	}, 300)
}


function openRegionStatistics() {

	// window.location.href = "regionStatistics.html"
	setTimeout(function() {
		mui.alert('功能正在构建,请耐心等待');
	}, 300)

}

function openAllStatistics() {

	// window.location.href = "allStatistics.html"
	setTimeout(function() {
		mui.alert('功能正在构建,请耐心等待');
	}, 300)
}
